org.eclipse.vtp.framework.spi
Interface IProcess

All Known Implementing Classes:
Process

public interface IProcess

A process that can be stepped through.

Author:
Lonnie Pryor

Method Summary
 ISession createSession(ISessionDescriptor descriptor)
          Creates a new process engine session from the specified descriptor.
 java.lang.String getProcessID()
          Returns the ID of this process.
 java.lang.Object[] lookupAllServices(java.lang.String identifier)
          Returns an array containing all the services registered under the specified identifier.
 java.lang.Object lookupService(java.lang.String identifier)
          Looks up the service selected for the specified identifier or null if no such service exists.
 

Method Detail

getProcessID

java.lang.String getProcessID()
Returns the ID of this process.

Returns:
The ID of this process.

lookupService

java.lang.Object lookupService(java.lang.String identifier)
                               throws java.lang.NullPointerException
Looks up the service selected for the specified identifier or null if no such service exists.

Parameters:
identifier - The identifier of the service to look up.
Returns:
The service selected for the specified identifier or null if no such service exists.
Throws:
java.lang.NullPointerException - If the supplied identifier is null.

lookupAllServices

java.lang.Object[] lookupAllServices(java.lang.String identifier)
                                     throws java.lang.NullPointerException
Returns an array containing all the services registered under the specified identifier.

Parameters:
identifier - The identifier of the services to look up.
Returns:
An array containing all the services registered under the specified identifier.
Throws:
java.lang.NullPointerException - If the supplied identifier is null.

createSession

ISession createSession(ISessionDescriptor descriptor)
                       throws java.lang.NullPointerException
Creates a new process engine session from the specified descriptor.

Parameters:
descriptor - The descriptor of the session to create.
Returns:
A new process engine session from the specified descriptor.
Throws:
java.lang.NullPointerException - If the specified descriptor is null.